/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package autowus.gui.options;

import autowus.gui.module.MainFrame;
import java.awt.Image;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.imageio.ImageIO;
import javax.swing.JFileChooser;
import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.filechooser.FileFilter;

import polaczenie.polacz;

/**
 *
 * @author Quark
 */
public class OptionsFrame extends javax.swing.JFrame {

    /**
     * Creates new form OptionsFrame
     */
    public OptionsFrame() {
        initComponents();
        initCustom();
        
        detailedMonthReportBtn.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evnt) {
            	polacz p = new polacz();
            	p.laczZBD();
                p.export_XML_aktualny_raport();
                
                System.out.println("detailedMonthReportBtn clicked.");
            }
        });
        
        monthReportBtn.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evnt) {
            	polacz p = new polacz();
                p.laczZBD();
                p.export_XML_podsumowanie();
                
                System.out.println("monthReportBtn clicked.");
            }
        });
        
        yearReportBtn.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evnt) {
            	polacz p = new polacz();
                p.laczZBD();
                p.export_XML_podsumowanie_roku();
                System.out.println("yearReportBtn clicked.");
            }
        });
        
        customMonthReportBtn.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evnt) {
                int month = monthsCB.getSelectedIndex();
                polacz p = new polacz();
                p.laczZBD();
                p.export_XML_podsumowanie_m(month);
                System.out.println("customMonthReportBtn clicked.");
            }
        });
        
        importPatientsBtn.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evnt) {
            	File file = null;
            	JFileChooser fc = new JFileChooser();
            	fc.setDialogTitle("Wybierz plik importujący pacjentów");
            	//fc.setFileFilter(new FileFilter().accept(xml));
            	fc.setFileSelectionMode(JFileChooser.FILES_ONLY);
            	fc.setCurrentDirectory(new File("C:/XML_FILES"));
            	int returnVal = fc.showOpenDialog(OptionsFrame.this);

                if (returnVal == JFileChooser.APPROVE_OPTION) {
                    file = fc.getSelectedFile();

                    System.out.println("Opening: " + file.getName());
                } else {
                    System.out.println("Open command cancelled by user.");
                }
                polacz p = new polacz();
                p.laczZBD();
                p.import_XML(file.getName());
                System.out.println("importPatientsBtn clicked.");
            }
        });
        
        exportPatientsBtn.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evnt) {
            	polacz p = new polacz();
                p.laczZBD(); 
                p.export_XML_pacjenci();
                System.out.println("exportPatientsBtn clicked.");
            }
        });
        
        exportVisitsBtn.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evnt) {
            	polacz p = new polacz();
                p.laczZBD();
                p.export_XML();
                System.out.println("exportVisitsBtn clicked.");
            }
        });
    }

    private void initCustom() {
        Image icon = null;
        try {
            icon = ImageIO.read(getClass().getResource("/autowus/gui/graphics/appointment/autoWUŚ_check_logo.png"));
        } catch (IOException ex) {
            Logger.getLogger(MainFrame.class.getName()).log(Level.SEVERE, null, ex);
        }
        this.setIconImage(icon);
        
        this.setTitle("Opcje dodatkowe");
        this.setLayout(null);
        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    }
    
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        wrappingPanel = new javax.swing.JPanel();
        contentPanel = new javax.swing.JPanel();
        logoLabel = new javax.swing.JLabel();
        xmlPanel = new javax.swing.JPanel();
        importPatientsBtn = new javax.swing.JButton();
        exportPatientsBtn = new javax.swing.JButton();
        exportVisitsBtn = new javax.swing.JButton();
        reportsPanel = new javax.swing.JPanel();
        jLabel5 = new javax.swing.JLabel();
        detailedMonthReportBtn = new javax.swing.JButton();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        monthReportBtn = new javax.swing.JButton();
        yearReportBtn = new javax.swing.JButton();
        customMonthReportBtn = new javax.swing.JButton();
        monthsCB = new javax.swing.JComboBox();
        copyrightLabel = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        wrappingPanel.setBackground(new java.awt.Color(2, 148, 75));
        wrappingPanel.setPreferredSize(new java.awt.Dimension(737, 510));

        contentPanel.setBackground(new java.awt.Color(2, 148, 75));
        contentPanel.setMaximumSize(new java.awt.Dimension(667, 440));
        contentPanel.setMinimumSize(new java.awt.Dimension(667, 440));

        logoLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/autowus/gui/graphics/module/main/autoWUŚ_main_logo.png"))); // NOI18N
        logoLabel.setText("jLabel3");
        logoLabel.setMaximumSize(new java.awt.Dimension(130, 76));
        logoLabel.setMinimumSize(new java.awt.Dimension(130, 76));
        logoLabel.setPreferredSize(new java.awt.Dimension(130, 76));

        xmlPanel.setBackground(new java.awt.Color(2, 148, 75));
        xmlPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "XML", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Ubuntu Condensed", 0, 14), new java.awt.Color(255, 255, 255))); // NOI18N
        xmlPanel.setForeground(new java.awt.Color(255, 255, 255));

        importPatientsBtn.setIcon(new javax.swing.ImageIcon(getClass().getResource("/autowus/gui/graphics/options/autoWUŚ_options_import.png"))); // NOI18N
        importPatientsBtn.setToolTipText("<html>Na potrzeby zadania 3 z przedmiotu Rozszerzone modelowanie systemów baz danych.<br><br>Importowanie danych z pliku XML do bazy danych.</html>");
        importPatientsBtn.setOpaque(false);
        importPatientsBtn.setPreferredSize(new java.awt.Dimension(161, 58));

        exportPatientsBtn.setIcon(new javax.swing.ImageIcon(getClass().getResource("/autowus/gui/graphics/options/autoWUŚ_options_export.png"))); // NOI18N
        exportPatientsBtn.setToolTipText("<html>Na potrzeby zadania 3 z przedmiotu Rozszerzone modelowanie systemów baz danych.<br><br>Exportowanie danych do pliku XML z bazy danych.</html>");
        exportPatientsBtn.setOpaque(false);
        exportPatientsBtn.setPreferredSize(new java.awt.Dimension(161, 58));

        exportVisitsBtn.setIcon(new javax.swing.ImageIcon(getClass().getResource("/autowus/gui/graphics/options/autoWUŚ_options_export_v.png"))); // NOI18N
        exportVisitsBtn.setToolTipText("<html>Na potrzeby zadania 3 z przedmiotu Rozszerzone modelowanie systemów baz danych.<br><br>Exportowanie danych do pliku XML z bazy danych.</html>");
        exportVisitsBtn.setOpaque(false);
        exportVisitsBtn.setPreferredSize(new java.awt.Dimension(161, 58));

        javax.swing.GroupLayout xmlPanelLayout = new javax.swing.GroupLayout(xmlPanel);
        xmlPanel.setLayout(xmlPanelLayout);
        xmlPanelLayout.setHorizontalGroup(
            xmlPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(xmlPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(xmlPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(importPatientsBtn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(exportPatientsBtn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(exportVisitsBtn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        xmlPanelLayout.setVerticalGroup(
            xmlPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(xmlPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(importPatientsBtn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(exportPatientsBtn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(exportVisitsBtn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        reportsPanel.setBackground(new java.awt.Color(2, 148, 75));
        reportsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Raporty", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Ubuntu Condensed", 0, 14), new java.awt.Color(255, 255, 255))); // NOI18N

        jLabel5.setForeground(new java.awt.Color(255, 255, 255));
        jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel5.setText("<html><p align=\"right\">Szczegółowy raport wizyt bieżącego<br>miesiąca:</p></html>");
        jLabel5.setMaximumSize(new java.awt.Dimension(230, 58));
        jLabel5.setMinimumSize(new java.awt.Dimension(230, 58));
        jLabel5.setPreferredSize(new java.awt.Dimension(230, 58));

        detailedMonthReportBtn.setIcon(new javax.swing.ImageIcon(getClass().getResource("/autowus/gui/graphics/options/autoWUŚ_options_generate.png"))); // NOI18N
        detailedMonthReportBtn.setToolTipText("Generowanie raportu wizyt odbytych w aktualnym miesiącu.");
        detailedMonthReportBtn.setOpaque(false);
        detailedMonthReportBtn.setPreferredSize(new java.awt.Dimension(161, 58));
        detailedMonthReportBtn.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource("/autowus/gui/graphics/options/autoWUŚ_options_generate_clicked.png"))); // NOI18N

        jLabel6.setForeground(new java.awt.Color(255, 255, 255));
        jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel6.setText("<html><p align=\"right\">Ilościowy raport wizyt bieżącego<br>miesiąca:</p></html>");
        jLabel6.setPreferredSize(new java.awt.Dimension(230, 58));

        jLabel7.setForeground(new java.awt.Color(255, 255, 255));
        jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel7.setText("Ilościowy raport wizyt bieżącego roku:");
        jLabel7.setPreferredSize(new java.awt.Dimension(230, 58));

        jLabel8.setForeground(new java.awt.Color(255, 255, 255));
        jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel8.setText("Ilościowy raport wizyt:");
        jLabel8.setPreferredSize(new java.awt.Dimension(230, 25));

        monthReportBtn.setIcon(new javax.swing.ImageIcon(getClass().getResource("/autowus/gui/graphics/options/autoWUŚ_options_generate.png"))); // NOI18N
        monthReportBtn.setToolTipText("Generowanie raportu ilościowego wizyt w aktualnym miesiącu.");
        monthReportBtn.setOpaque(false);
        monthReportBtn.setPreferredSize(new java.awt.Dimension(161, 58));
        monthReportBtn.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource("/autowus/gui/graphics/options/autoWUŚ_options_generate_clicked.png"))); // NOI18N

        yearReportBtn.setIcon(new javax.swing.ImageIcon(getClass().getResource("/autowus/gui/graphics/options/autoWUŚ_options_generate.png"))); // NOI18N
        yearReportBtn.setToolTipText("Generowanie raportu ilościowego wizyt w aktualnym roku.");
        yearReportBtn.setOpaque(false);
        yearReportBtn.setPreferredSize(new java.awt.Dimension(161, 58));
        yearReportBtn.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource("/autowus/gui/graphics/options/autoWUŚ_options_generate_clicked.png"))); // NOI18N

        customMonthReportBtn.setIcon(new javax.swing.ImageIcon(getClass().getResource("/autowus/gui/graphics/options/autoWUŚ_options_generate.png"))); // NOI18N
        customMonthReportBtn.setToolTipText("Generowanie raportu ilościowego wizyt w wybranym miesiącu aktualnego okresu rocznego.");
        customMonthReportBtn.setOpaque(false);
        customMonthReportBtn.setPreferredSize(new java.awt.Dimension(161, 58));
        customMonthReportBtn.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource("/autowus/gui/graphics/options/autoWUŚ_options_generate_clicked.png"))); // NOI18N

        monthsCB.setBackground(new java.awt.Color(240, 240, 240));
        monthsCB.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Wybierz miesiąc", "Styczeń", "Luty", "Marzec", "Kwiecień", "Maj", "Czerwiec", "Lipiec", "Sierpień", "Wrzesień", "Październik", "Listopad", "Grudzień" }));
        monthsCB.setToolTipText("");
        monthsCB.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));
        monthsCB.setOpaque(false);
        monthsCB.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                monthsCBActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout reportsPanelLayout = new javax.swing.GroupLayout(reportsPanel);
        reportsPanel.setLayout(reportsPanelLayout);
        reportsPanelLayout.setHorizontalGroup(
            reportsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(reportsPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(reportsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(reportsPanelLayout.createSequentialGroup()
                        .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 230, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(detailedMonthReportBtn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(reportsPanelLayout.createSequentialGroup()
                        .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 230, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(monthReportBtn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(reportsPanelLayout.createSequentialGroup()
                        .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(yearReportBtn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(reportsPanelLayout.createSequentialGroup()
                        .addGroup(reportsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jLabel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(monthsCB, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGap(18, 18, 18)
                        .addComponent(customMonthReportBtn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        reportsPanelLayout.setVerticalGroup(
            reportsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(reportsPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(reportsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(detailedMonthReportBtn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(reportsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(monthReportBtn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(reportsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(yearReportBtn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(reportsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(reportsPanelLayout.createSequentialGroup()
                        .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(monthsCB))
                    .addComponent(customMonthReportBtn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        copyrightLabel.setForeground(new java.awt.Color(255, 255, 255));
        copyrightLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        copyrightLabel.setText("<html><center>All rights reserved ®<br>& Copyright © 2013<br>by Completely Unprepared</center></html>");

        javax.swing.GroupLayout contentPanelLayout = new javax.swing.GroupLayout(contentPanel);
        contentPanel.setLayout(contentPanelLayout);
        contentPanelLayout.setHorizontalGroup(
            contentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(contentPanelLayout.createSequentialGroup()
                .addGroup(contentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(logoLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(contentPanelLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(reportsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(contentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(xmlPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(copyrightLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))))
                .addContainerGap(13, Short.MAX_VALUE))
        );
        contentPanelLayout.setVerticalGroup(
            contentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(contentPanelLayout.createSequentialGroup()
                .addComponent(logoLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(contentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(contentPanelLayout.createSequentialGroup()
                        .addComponent(xmlPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(copyrightLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(reportsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(0, 12, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout wrappingPanelLayout = new javax.swing.GroupLayout(wrappingPanel);
        wrappingPanel.setLayout(wrappingPanelLayout);
        wrappingPanelLayout.setHorizontalGroup(
            wrappingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(wrappingPanelLayout.createSequentialGroup()
                .addGap(35, 35, 35)
                .addComponent(contentPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 35, Short.MAX_VALUE))
        );
        wrappingPanelLayout.setVerticalGroup(
            wrappingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(wrappingPanelLayout.createSequentialGroup()
                .addGap(35, 35, 35)
                .addComponent(contentPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(36, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(wrappingPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 0, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(wrappingPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 511, Short.MAX_VALUE)
        );

        pack();
        setLocationRelativeTo(null);
    }// </editor-fold>//GEN-END:initComponents

    private void monthsCBActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_monthsCBActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_monthsCBActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) throws UnsupportedLookAndFeelException {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Windows".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException | InstantiationException | IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(OptionsFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } 
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new OptionsFrame().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel contentPanel;
    private javax.swing.JLabel copyrightLabel;
    private javax.swing.JButton customMonthReportBtn;
    private javax.swing.JButton detailedMonthReportBtn;
    private javax.swing.JButton exportPatientsBtn;
    private javax.swing.JButton exportVisitsBtn;
    private javax.swing.JButton importPatientsBtn;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel logoLabel;
    private javax.swing.JButton monthReportBtn;
    private javax.swing.JComboBox monthsCB;
    private javax.swing.JPanel reportsPanel;
    private javax.swing.JPanel wrappingPanel;
    private javax.swing.JPanel xmlPanel;
    private javax.swing.JButton yearReportBtn;
    // End of variables declaration//GEN-END:variables
}
